﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp12
{
    class Hero
    {
        public String Name;
        public int gong;
        public int fang;
        public int su;

        public Hero(String Name,int gong,int fang,int su)
        {
            this.Name = Name;
            this.gong = gong;
            this.fang = fang;
            this.su = su;

        }
       
    }
    class D1 :Hero
    {
        public String Name;
        public int gong;
        public int fang;
        public int su;
        public String sui;
        public String lei;
        public String zhan;
    
        public D1(String Name,int gong,int fang,int su,String sui,String lei,String zhan):base(Name ,gong,fang,su)
        {
            this.Name = Name;
            this.gong = gong;
            this.fang = fang;
            this.su = su;
            this.sui = sui;
            this.lei = lei;
            this.zhan = zhan;

            


        }
       




        
        public void Giao()
        {
            Console.WriteLine("英雄是{0},攻击力为{1},防御力{2},速度是{3},技能1是{4},技能二是{5},技能三是{6}",this.Name,this.gong,this.fang,this.su,this.sui,this.lei,this.zhan);

        }

    }
    class D2 : Hero
    {
        public String Name;
        public int gong;
        public int fang;
        public int su;
        public String sui;
        public String lei;
        public String zhan;

        public D2(String Name, int gong, int fang, int su, String sui, String lei, String zhan) : base(Name, gong, fang, su)
        {
            this.Name = Name;
            this.gong = gong;
            this.fang = fang;
            this.su = su;
            this.sui = sui;
            this.lei = lei;
            this.zhan = zhan;




        }






        public void Gi()
        {
            Console.WriteLine("英雄是{0},攻击力为{1},防御力{2},速度是{3},技能1是{4},技能二是{5},技能三是{6}", this.Name, this.gong, this.fang, this.su, this.sui, this.lei, this.zhan);

        }

    }
    class D3 : Hero
    {
        public String Name;
        public int gong;
        public int fang;
        public int su;
        public String sui;
        public String lei;
        public String zhan;

        public D3(String Name, int gong, int fang, int su, String sui, String lei, String zhan) : base(Name, gong, fang, su)
        {
            this.Name = Name;
            this.gong = gong;
            this.fang = fang;
            this.su = su;
            this.sui = sui;
            this.lei = lei;
            this.zhan = zhan;




        }






        public void G()
        {
            Console.WriteLine("英雄是{0},攻击力为{1},防御力{2},速度是{3},技能1是{4},技能二是{5},技能三是{6}", this.Name, this.gong, this.fang, this.su, this.sui, this.lei, this.zhan);

        }

    }
    class D4 : Hero
    {
        public String Name;
        public int gong;
        public int fang;
        public int su;
        public String sui;
        public String lei;
        public String zhan;

        public D4(String Name, int gong, int fang, int su, String sui, String lei, String zhan) : base(Name, gong, fang, su)
        {
            this.Name = Name;
            this.gong = gong;
            this.fang = fang;
            this.su = su;
            this.sui = sui;
            this.lei = lei;
            this.zhan = zhan;




        }






        public void Ml()
        {
            Console.WriteLine("英雄是{0},攻击力为{1},防御力{2},速度是{3},技能1是{4},技能二是{5},技能三是{6}", this.Name, this.gong, this.fang, this.su, this.sui, this.lei, this.zhan);

        }

    }
}
